package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.User;
import cn.wolfcode.luowowo.util.JsonResult;

import java.util.Map;

/**
 * 用户业务接口
 */
public interface IUserService {
    /**
     * 根据id查询用户信息
     * @param id
     * @return
     */
    User get(String id);
    //验证手机号
    boolean checkPhone(String Phone);
    //发送验证码
    void sendVerifyCode(String phone, String url, String appkey);
    //注册
    void regist(String phone, String nickname, String password, String rpassword, String verifyCode);

    Map<String , String> login(String username, String password);

    User getCurrentUser(String token);
}
